panel_contents = $("div.fire_result.panel div.panel_contents");
panel_contents.empty();

<% if @results.blank? %>
  panel_contents.append("<b>Not Result!</b>");
<% else %>
  <% @results.each do |result| %>
    panel_contents.append("<%= escape_javascript(render partial: 'rule_entities/shared/fire_result', locals: {result: result } )%>")
  <% end %>
<% end %>
